package com.lanxiao.cloud.common.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-09-13
 */
@ApiModel("基础返回模型")
public class BaseDto<T> extends Dto<T>{
  @ApiModelProperty(value = "创建时间")
  private final Date createTime;
  @ApiModelProperty(value = "修改时间")
  private final Date updateTime;
  @ApiModelProperty(value = "创建者")
  protected UserBaseDto<T> createUser;
  @ApiModelProperty(value = "修改者")
  protected UserBaseDto<T> updateUser;
  @ApiModelProperty(value = "备注")
  protected final String remark;

  public BaseDto(T id, Date createTime, Date updateTime, String remark) {
    super(id);
    this.createTime = createTime;
    this.updateTime = updateTime;
    this.remark = remark;
  }

  public UserBaseDto<T> getCreateUser() {
    return createUser;
  }

  public UserBaseDto<T> getUpdateUser() {
    return updateUser;
  }

  public void setCreateUser(UserBaseDto<T> createUser) {
    this.createUser = createUser;
  }

  public void setUpdateUser(UserBaseDto<T> updateUser) {
    this.updateUser = updateUser;
  }

  public String getRemark() {
    return remark;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

}
